﻿using Dapper;
using Estsh.Core.Model.ExcelModel;
using Estsh.Core.Model.Extend.Models;
using Estsh.Core.Model.Result;
using Estsh.Core.Models;
using Estsh.Core.Repositories;
using System.Collections;

namespace Estsh.Core.Wms.IRepositories
{
    public interface IWorkOrderRepository : IBaseRepository<MesWorkOrder_Extend>
    {

        #region 成员方法

        public List<KeyValueResult> GetResourceCode(int factoryId);
        public List<KeyValueResult> GetOrderType();

        public List<KeyValueResult> GetOrderStatus();

        public List<KeyValueResult> GetPrepareMateria();
        public List<KeyValueResult> GetWarehouse();

        public Hashtable getPurchaseListByPage(int PageSize, int PageIndex, string strWhere, string OrderBy);

        public int saveGenerateIngredients(string prepareMaterial, string orderNos, string Warehouse, int empId);
        public int FiringData(String orderNos);

        public int SuspendData(String orderNos);

        public int CancelData(String orderNos);

        public int CloseData(String orderNos);

        public int AccomplishData(String orderNos);

        public int SQLTransaction(List<string> sqlStrings, List<DynamicParameters> parameterList);

        #endregion

        /*
        #region  成员方法

        public List<SysPartCustOrder> getList(string strWhere, string filedOrder);
        public Hashtable getListByPage(int PageSize, int PageIndex, string OrderBy, string stageId, string SN, string partNo, string enabled);
        public int saveAdjustOrder(SysPartCustOrder Params);
        public int updateAdjustOrder(SysPartCustOrder Params);
        public int deleteAdjustOrder(String part_id);
        public bool upRow(int seq, int ruid, int up_ruid, int up_seq);
        public bool upAll(int ruid, int seq, int up_ruid, int up_seq);
        public List<GWorkorderDetail> selectAll(string CustPDLine);
        public List<KeyValueResult> getSelectAdjustOrder();
        public int deleteOrder(String guid);
        public string getPartLocation(string ruid);

        public int deleteOrderInfo(String ruid, string custPdlineDesc, string partLocation);
        public int EnableData(String Ids);
        public int DisableData(String Ids);
        public Hashtable getListByPage(int PageSize, int PageIndex, string OrderBy, string stageId);
        #endregion  成员方法

        */
    }
}
